package org.cloud.im.core.banner;

import org.cloud.im.core.CloudImVersion;
import org.cloud.im.core.ImConst;

import java.io.PrintStream;

/**
 * @Author: w.weidong.lin@abite.com
 * @Description: TODO
 * @Date: create in 2021/10/19 14:46
 */
public class CloudImBanner implements Banner, ImConst {

    private static final String BANNER = "" +
            "   _____ _      ____  _    _ _____    _____ __  __\n" +
            "  / ____| |    / __ \\| |  | |  __ \\  |_   _|  \\/  |\n" +
            " | |    | |   | |  | | |  | | |  | |   | | | \\  / |\n" +
            " | |    | |   | |  | | |  | | |  | |   | | | |\\/| |\n" +
            " | |____| |___| |__| | |__| | |__| |  _| |_| |  | |\n" +
            "  \\_____|______\\____/ \\____/|_____/  |_____|_|  |_|\n" +
            "\n" +
            "                                                   \n";

    private static final String IM = " :: " + ImConst.CLOUD_IM + " :: ";

    @Override
    public void printBanner(PrintStream printStream) {
        printStream.println(BANNER);
        String version = " (" + CloudImVersion.version + ")";
        printStream.println(IM + version + "\n");
    }

}
